﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web.Master" AutoEventWireup="true" CodeBehind="view.aspx.cs" Inherits="web.ShoppingCart.view" %>
<%@ Register TagPrefix="url" Namespace="ActionlessForm" Assembly="ActionlessForm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server">
    <url:Form id="Form1" runat="server">
        <table style="width: 400px;float:left;">
            <tr>
                <th>ID</th>
                <th>商品名称</th>
                <th>小计</th>
                <th>数量</th>
                <th>删除</th>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <ItemTemplate>
                    <tr>
                        <td><%#Eval("ID") %></td>
                        <td><%#Eval("title") %></td>
                        <td><%#Eval("totalPrice") %></td>
                        <td>
                            <asp:LinkButton ID="LinkButton2" CommandArgument='<%#Eval("ID")+"|"+Eval("Count")%>'  CommandName="down" runat="server">-</asp:LinkButton>   <%#Eval("Count") %>   <asp:LinkButton CommandArgument='<%#Eval("ID")+"|"+Eval("Count")%>' ID="LinkButton3" CommandName="up" runat="server">+</asp:LinkButton></td>
                        <td>
                            <asp:LinkButton ID="LinkButton1" CommandName="del" CommandArgument='<%#Eval("id") %>' runat="server">删除</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
            <tr>
                <td colspan="5">
                    总计：<%=TotalPrice %>
                </td>
            </tr>
        </table>
        <asp:Button ID="Button1" runat="server" Text="现在去结算»" OnClick="Button1_Click" />
    </url:Form>
</asp:Content>
